package com.gdms.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.gdms.entity.Teacher;

/**
 * 添加教师信息
 * 根据 id 查询教师信息
 * 查询所有教师信息
 * 删除教师信息
 * 更新教师信息
 * 根据 编号、姓名、编号和姓名 查询教师信息
 * 根据 教师no 查询教师的信息
 */

public interface ITeacherDao {
	int addTeacher(Teacher teacher);
	Teacher selectTeacher(int id);
	List<Teacher> showAllTeacher();
	int deleteTeacher(int id);
	int updateTeacher(Teacher teacher);
	List<Teacher> showTeacherOne1(String teacherNo);
	List<Teacher> showTeacherOne2(String teacherName);
	List<Teacher> showTeacherOne3(@Param("teacherNo") String teacherNo,@Param("teacherName") String teacherName);
	Teacher teacherInfoByNo(String teacherNo);
}
